﻿using NewFormatProject.Infrastructure.Atrributes;
using NewFormatProject.Infrastructure.Dto.Requests.Objects;
using NewFormatProject.Infrastructure.Dto.Responses;
using NewFormatProject.Infrastructure.EFCore;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace NewFormatProject.Server.Interfaces
{
    [ProvideClassOrInterface]
    public interface IUserServer
    {
        Task<ResponseApiDto> Detail(int id);
        Task<ResponseApiDto> Pagination(int page, int limit, string key);
        Task<ResponseApiDto> Add(RequestSysUsersDto dto);
        Task<ResponseApiDto> Delete(RequestSysUsersDto dto);
        Task<ResponseApiDto> UpdateWithImage(RequestSysUsersDto dto);
        Task<ResponseApiDto> UpdateWithoutImage(RequestSysUsersDto dto);
        Task<int> Update(SysUsers dto);
        SysUsers Find(int id);
    }
}
